package com.crawler.util;

import javax.sql.DataSource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

public class JDBCUtils {
    //1、读取配置信息  
    private volatile static DataSource ds = null;  
    
    private JDBCUtils(){
    }
    public static DataSource getInstence(){  
    	if(ds==null){
    		synchronized (JDBCUtils.class) {
				if(ds==null){
					ds =  new ComboPooledDataSource();
				}
			}
    	}
        return ds;  
    }  
}
